package com.fjp.heartguard.viewmodel

import androidx.lifecycle.MutableLiveData
import com.fjp.heartguard.app.base.HTBaseViewModel
import com.fjp.heartguard.app.data.bean.Reports
import com.fjp.heartguard.app.data.bean.ReportsHistory
import com.fjp.heartguard.app.data.bean.ReportsType
import com.fjp.heartguard.app.network.HttpRequestCoroutine
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

/**
 *Author:Mr'x
 *Time:2025/1/19
 *Description:
 */
class SingleAllReportViewModel : HTBaseViewModel() {
    var reports = MutableLiveData<ResultState<Reports>>()
    var pageSize = 20
    var page = 1
    var olderId=0
    fun getQuestionnaireList() {
        request({
            HttpRequestCoroutine.getQuestionnaireList("", page, pageSize, ReportsType.ALL.value,olderId)
        }, reports, false)

    }
}